package Code1;

public class test2 {
    public static void main(String[] args) {
        //创建女朋友的对象
        girlFirend g = new girlFirend();

        g.age = 18;
        g.name = "***";
        g.gender = "女";

        System.out.println(g.age);
        System.out.println(g.name);
        System.out.println(g.gender);

        g.sleep();
        g.eat();

        System.out.println("++++++++++++++++++++++++++++++");
        girlFirend g2 = new girlFirend();

        g2.age = 18;
        g2.name = "***";
        g2.gender = "女";

        //按鼠标滚轮不松，拖也可以竖行选中
        System.out.println(g2.age);
        System.out.println(g2.name);
        System.out.println(g2.gender);

        g.sleep();
        g.eat();

    }
}
